<?php
/** @var TCargoavController $this */
/** @var TCargoav $data */
?>
<div class="view">
                    
        <?php if (!empty($data->cav_descripcion)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('cav_descripcion')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->cav_descripcion); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->pro_id)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('pro_id')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->pro_id); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->cav_inicio)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('cav_inicio')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo Yii::app()->getDateFormatter()->formatDateTime($data->cav_inicio, 'medium', 'medium'); ?>
            <br/>
                 <?php echo date('D, d M y H:i:s', strtotime($data->cav_inicio)); ?>
                            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->cav_fin)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('cav_fin')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo Yii::app()->getDateFormatter()->formatDateTime($data->cav_fin, 'medium', 'medium'); ?>
            <br/>
                 <?php echo date('D, d M y H:i:s', strtotime($data->cav_fin)); ?>
                            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->cav_grado)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('cav_grado')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->cav_grado); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->cav_ciudad)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('cav_ciudad')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->cav_ciudad); ?>
            </div>
        </div>

        <?php endif; ?>
                
        <?php if (!empty($data->est_id)): ?>
        <div class="field">
            <div class="field_name">
                <b><?php echo CHtml::encode($data->getAttributeLabel('est_id')); ?>:</b>
            </div>
            <div class="field_value">
                <?php echo CHtml::encode($data->est_id); ?>
            </div>
        </div>

        <?php endif; ?>
    </div>